import { $rp } from '@/utils/constants';
import CommunitiesIndex from '@/components/communities/index/Index';
import CommunitiesCreate from '@/components/communities/create/Create';
import CommunitiesShow from '@/components/communities/show/Show';
import CommunitiesInvite from '@/components/communities/invite';

export default [
  {
    path: `/${$rp.COMMUNITIES}`,
    component: CommunitiesIndex,
  },
  {
    path: `/${$rp.COMMUNITIES}/${$rp.CREATE}`,
    component: CommunitiesCreate,
    meta: { requireAuth: true },
  },
  {
    path: `/${$rp.COMMUNITIES}_${$rp.INVITE}`,
    component: CommunitiesInvite,
  },
  {
    path: `/${$rp.COMMUNITIES}/:communityId`,
    component: CommunitiesShow,
  },
];
